package cn.akwing.sms.service.Impl;

import cn.akwing.sms.mapper.TextMapper;
import cn.akwing.sms.pojo.Text;
import cn.akwing.sms.service.TextService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TextServiceImpl implements TextService {
    @Autowired
    private TextMapper textMapper;

    @Override
    public int insert(Text text) {
        return textMapper.insert(text);
    }

    @Override
    public List<Text> selectAll() {
        return textMapper.selectAll();
    }
}
